package cn.webrx;

public class MyStackDemo {
    public static void main(String[] args) {
        MyStack<Student> ms = new MyStack<>();
        ms.add(new Student(1,"李四"));
        ms.add(new Student(2,"张三丰"));
        ms.add(new Student(3,"王五"));

        System.out.println(ms.size());
        System.out.println(ms.get());
        System.out.println(ms.size());

        System.out.println(ms.get());
        System.out.println(ms.size());

        System.out.println(ms.get());

        System.out.println("------------");
        ms.add(new Student(6,"jack"));
        System.out.println(ms.size());

        System.out.println(ms.get());

        System.out.println(ms.size());

        System.out.println(ms.get());
        System.out.println(ms.size());

    }
}
